package so.wy.servicecenter.businessbed.service.rentuser;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import so.wy.servicecenter.base.frame.baseopt.BaseOptService;
import so.wy.servicecenter.businessbed.dao.rdb.rent_user.RentUserDAO;
import so.wy.servicecenter.businessbed.dao.rdb.rent_user.RentUserDO;
import so.wy.servicecenter.businessbed.service.rentuser.dto.RentUserDTO;

@Service
@Scope("prototype")
public class RentUserService extends BaseOptService<RentUserDAO, RentUserDO, RentUserDTO> {

    @Override
    protected RentUserDTO convert2DTO(RentUserDO rentUserDO) {
        return new RentUserDTO(rentUserDO);
    }

    @Override
    protected RentUserDO convert2DO(RentUserDTO rentUserQuery) {
        return rentUserQuery.convert2DO();
    }
}
